package com.example.customer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicListener {

    @RabbitListener(queues = "topic.message")
    public void receiveTopicMessage(String message){
        System.out.println("topic1Message："+message);
    }


    @RabbitListener(queues = "topic.message22")
    public void receiveTopicMessage22(String message){
        System.out.println("topic2Message："+message);
    }


}
